package com.thomas.framework.core;

import com.thomas.framework.utils.PageResult;

import java.io.Serializable;
import java.util.List;

/**
 * Created by taohj on 2015/1/6.
 */
public interface IDao<T extends  EntityBase> {

    public  int insert(T entity);

    public  int delete(T entity);

    public  int update(T entity);

    public  T  selectById(Serializable id);


    public List<T> selectbyPage(PageResult<T> pageResult);


    List<T> selectList(T t);

    T select(T t);


}
